﻿using AppSocketModel;

namespace AppSocketService.SmsService
{
    /// <summary>
    /// 阿里云发送短信服务接口
    /// </summary>
    public interface IAliyunSmsService
    {
        /// <summary>
        /// 发送注册验证码
        /// </summary>
        /// <param name="phone">用户手机号</param>
        /// <returns></returns>
        GeneratePassCodeDto SendRegisterPassCode(string phone);

        /// <summary>
        /// 验证用户验证码
        /// </summary>
        /// <param name="phone">手机号码</param>
        /// <param name="passCode">验证码</param>
        /// <returns></returns>
        bool ValidatePassCode(string phone, string passCode);
    }
}